﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Person
    {
        public  int id;
        public  string name;
        public  char sex;
        public  int cardid;
        public  long tel;

        public Person()
        {

        }
        public Person(int id, string name, char sex, int cardid, int tel)
        {
            this.id = id;
            this.name = name;
            this.sex = sex;
            this.cardid = cardid;
            this.tel = tel;
        }
        protected void SayHi()
        {
            Console.WriteLine("编号:{0}"+"\n"+ "姓名:{1}" + "\n" + "性别:{2}" + "\n" + "身份证号:{3}" + "\n" + "联系方式:{4}", this.id, this.name, this.sex, this.cardid, this.tel);
        }
        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public char Sex
        {
            get { return this.sex; }
            set { this.sex = value; }
        }
        public int Cardid
        {
            get { return this.cardid; }
            set { this.cardid = value; }
        }
        public long Tel
        {
            get { return this.tel; }
            set { this.tel = value; }
        }
    }
}
